import Vue from 'vue'
import Vuex from 'vuex'
import common from './common'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    common
  },
  state: {
    msg: 'hello vue!!!'
  },
  getters: {
    getMsg(state) {
      return state.msg
    }
  }
})

export default store
